non homogeneous partial differential equation by direct integration